export function Viewport() {

    let pvp;
    document.onsizechange = function() {
        let w = this.state.box("width");
        let vp;
        if (w > 1024) vp = "wide";
        else if (w < 480) vp = "narrow";
        else vp = "normal";
        if (pvp != vp) {
            console.log(vp);
            pvp = vp;
            Window.this.mediaVars({ viewport: vp });
        }
    }
}